package eventReservationServer.saxParser;

import util.Technology;

public class Service
{
	String name = null;
	String ip = null;
	String port = null;
	util.Technology tech = null;

	
	
	public Service()
	{
		super();
	}

	public Service(String name, String ip, String port, Technology tech)
	{
		super();
		this.name = name;
		this.ip = ip;
		this.port = port;
		this.tech = tech;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getIp()
	{
		return ip;
	}

	public void setIp(String ip)
	{
		this.ip = ip;
	}

	public String getPort()
	{
		return port;
	}

	public void setPort(String port)
	{
		this.port = port;
	}

	public util.Technology getTech()
	{
		return tech;
	}

	public void setTech(util.Technology tech)
	{
		this.tech = tech;
	}
	
	/**
	 * Para mostrar el XML parseado por pantalla.
	 */
	@Override
	public String toString()
	{
		return name + " " + ip + " " + port + " " + tech + "\n";
	}
}
